<include file="public@head_top"/>
<include file="public@member_top"/>
<link type="text/css" href="__TMPL__/public/assets/css/shop.css" rel="stylesheet" />
</head>
<body class="bgeee">
<include file="public@head"/>

<div class="wrap clearfloat tc-main">
	<div class="row">
    
        <div class="col-lg-3 leftnav">
            <include file="public@usernav" />
        </div>
        
		<div class="col-lg-9 rightmain">
        
                <div class="card-header usertitle" style="display:block;">
                    <ul class="nav nav-tabs card-header-tabs">
                      <li class="nav-item">
                        <a class="nav-link active" href="#one" data-toggle="tab"><i class="fa fa-list-ul"></i> 我的优惠券</a>
                      </li>
                      <li class="nav-item">
                        <a class="nav-link" href="#two" data-toggle="tab"><i class="fa fa-edit"></i> 已使用</a>
                      </li>
                      <li class="nav-item">
                        <a class="nav-link" href="#three" data-toggle="tab"><i class="fa fa-sign-out"></i> 已过期</a>
                      </li>
                    </ul>
                  </div>
                  
                <div class="tab-content usercontent">
                    <div class="tab-pane active" id="one">
                        <div class="ycouponlist tab-active">
                            <foreach name="configmember['couponlist']" key="key" item="vo">
                            <a href="{$vo.url}" class="aui-flex" target="_blank">
                                <div class="aui-price-nub">
                                    <div class="aui-digit">
                                        <h2><em>￥</em>{$vo.yhmoney}</h2>
                                    </div>
                                    <div class="aui-full">
                                        <p>满{$vo.tomoney}元可用</p>
                                    </div>
                                </div>
                                <div class="aui-flex-box">
                                    <h2>{$vo.name}</h2>
                                    <h3>有效期：{$vo.endtime|date='Y-m-d',###}</h3>
                                    <span class="hdbutton">去使用</span>
                                    <div class="hdtype">活动类型：<if condition="$vo.hdtype == 1">指定商品优惠券<else>订单优惠券</if></div>
                                </div>
                            </a>
                            </foreach>
                        </div>
                    </div>
                    <div class="tab-pane" id="two">
                        <div class="ycouponlist ycouponlist-clear">
                            <foreach name="configmember['couponlistused']" key="key" item="vo">
                            <a href="{$vo.url}" class="aui-flex" target="_blank">
                                <div class="aui-price-nub">
                                    <div class="aui-digit">
                                        <h2><em>￥</em>{$vo.yhmoney}</h2>
                                    </div>
                                    <div class="aui-full">
                                        <p>满{$vo.tomoney}元可用</p>
                                    </div>
                                </div>
                                <div class="aui-flex-box">
                                    <h2>{$vo.name}</h2>
                                    <h3>有效期：{$vo.endtime|date='Y-m-d',###}</h3>
                                    <span class="hdbutton">已使用</span>
                                    <div class="hdtype">活动类型：<if condition="$vo.hdtype == 1">指定商品优惠券<else>订单优惠券</if></div>
                                </div>
                            </a>
                            </foreach>
                        </div>
                    </div>
                    <div class="tab-pane" id="three">
                        <div class="ycouponlist ycouponlist-clear">
                            <foreach name="configmember['couponlistexpired']" key="key" item="vo">
                            <a href="{$vo.url}" class="aui-flex" target="_blank">
                                <div class="aui-price-nub">
                                    <div class="aui-digit">
                                        <h2><em>￥</em>{$vo.yhmoney}</h2>
                                    </div>
                                    <div class="aui-full">
                                        <p>满{$vo.tomoney}元可用</p>
                                    </div>
                                </div>
                                <div class="aui-flex-box">
                                    <h2>{$vo.name}</h2>
                                    <h3>有效期：{$vo.endtime|date='Y-m-d',###}</h3>
                                    <span class="hdbutton">已过期</span>
                                    <div class="hdtype">活动类型：<if condition="$vo.hdtype == 1">指定商品优惠券<else>订单优惠券</if></div>
                                </div>
                            </a>
                            </foreach>
                        </div>
                    </div>
                </div>
                
        </div>
        
    </div>
</div>
<!-- /container -->

<include file="public@footer"/>
<include file="public@member_scripts"/>
</body>    
</html>